package com.partner.bean.login;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class UserinfoResetPwd {

	@NotBlank(message = "{account.is.null}")
	@Pattern(regexp="^((13[0-9])|(14[5,7,9])|(15[^4,\\D])|(17[0,1,3,5-8])|(18[0-9]))\\d{8}$", message="{account.format.error}")
	private String account;
	// 6-18 位，字母、数字、字符
	@NotBlank(message = "{oldpassword.is.null}")
	@Length(max=18,min=6,message = "{oldpassword.length.error}")
	private String oldpassword;
	// 6-18 位，字母、数字、字符
	@NotBlank(message = "{newpassword.is.null}")
	@Length(max=18,min=6,message = "{newpassword.length.error}")
	private String password;	
	@NotBlank(message = "{session.is.null}")
	private String session;
	
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getSession() {
		return session;
	}
	public void setSession(String session) {
		this.session = session;
	}
	public String getOldpassword() {
		return oldpassword;
	}
	public void setOldpassword(String oldpassword) {
		this.oldpassword = oldpassword;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
}
